﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Drawing;
using QLCONGNOLIBS.Models;

namespace QLCONGNOLIBS.Controllers
{
    public class ImageControllers
    {
        private ImageModels m_objModels;
        public ImageControllers()
        {
            m_objModels = new ImageModels();
        }

        public byte[] ConvertImageToByte(string filePath)
        {
            return m_objModels.ConvertImageToByte(filePath);
        }

        public Image ConvertByteToImage(byte[] byImages)
        {
            return m_objModels.ConvertByteToImage(byImages);
        }
    }
}
